import Inner from "@/views/Inner/index.vue";
import NotFound from '@/views/NotFound/index.vue';
import Login from "@/views/Login/index.vue";
import Registered from "@/views/Registered/index.vue";
import RegisteredSuccessful from "@/views/Registered/successful.vue";


const defaultRoutes: any = [
  {
    path: "/inner",
    name: "内部页面",
    component: Inner,
    meta: {
      activePath: '/'  // 打开非Menu页面选择当前激活menu
    }
  },
  {
    path: '/:pathMatch(.*)*',
    name: '404',
    component: NotFound
  },
  {
    path: '/login',
    name: '登录',
    component: Login
  },
  {
    path: '/Registered',
    name: '注册',
    component: Registered
  },
  {
    path: '/RegisteredSuccessful',
    name: '注册成功',
    component: RegisteredSuccessful
  },
  {
    path: '/TestTemplate/TreeTable',
    name: '测试模板',
    component: () => import("@/views/Template/treeTable.vue")
  }

];

export default defaultRoutes;
